import numpy as np

if __name__ == '__main__':
    a = np.array([1, 2, 3])
    b = np.array([4, 5, 6])

    # 按照垂直方向（row, axis=0）进行堆叠
    c = np.vstack((a, b))
    print(c)

    # 按照水平方向（column, axis=1）进行堆叠
    d = np.hstack((a, b))
    print(d)
